package com.um.jdy.common.finance.service;

import com.um.jdy.common.finance.enums.FinancialEnum;
import com.um.springboot.starter.orm.service.BaseEntityService;
import com.um.jdy.common.finance.entity.po.UserBill;

/**
 * 服务接口：用户流水表
 */
public interface UserBillService extends BaseEntityService<UserBill> {

    /**
     * 保存用户流水
     * @param comId
     * @param memberUserId
     * @param outTradeNo
     * @param orderNo
     * @param amount
     * @param type
     * @param event
     * @param status
     * @return
     */
    UserBill addBill(String comId, String memberUserId, String outTradeNo, String orderNo, Integer amount,
                     FinancialEnum.IncomeOrExpend type, FinancialEnum.UserBillEvent event, FinancialEnum.BillStatus status);

}
